package com.example.data.controller;

import com.example.data.model.Mydata;
import com.example.data.service.MyDataService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Lei
 * @create 2023-04-15 10:26
 */
@RestController
@RequestMapping("data")
public class DataController {

    @Resource
    private MyDataService myDataService;


    @RequestMapping("all")
    public Object getAll(){
        return  myDataService.getAll();
    }








}
